import javax.swing.*;
import java.awt.Event.*;

public class menu {

public JMenuBar getMenuBar(){
	/*JFrame frame = new JFrame("Nine Mens Morris");
	frame.setVisible(false);
	frame.setSize(500,500);
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);*/
	
	JMenuBar menubar = new JMenuBar();
	//frame.setJMenuBar(menubar);

	JMenu file = new JMenu("File");
	menubar.add(file);
	
	JMenu help = new JMenu("Help");
	menubar.add(help);
	
	//add menu items
	JMenu newGame = new JMenu("New Game");
	file.add(newGame);
	
	JMenuItem PVPGame = new JMenuItem("Player Vs Player");
	newGame.add(PVPGame);
	JMenuItem PVCGame = new JMenuItem("Player Vs Computer");
	newGame.add(PVCGame);
	
	JMenuItem loadGame = new JMenuItem("Load Game");
	file.add(loadGame);
					
	JMenuItem saveGame = new JMenuItem("Save Game");
	file.add(saveGame);
	
	file.addSeparator();

	
	JMenu viewLeaderboard = new JMenu("View Leaderboard");
	file.add(viewLeaderboard);
	
	JMenuItem PVPLeaderboard = new JMenuItem("Player Vs Player");
	viewLeaderboard.add(PVPLeaderboard);
	JMenuItem PVCLeaderboard = new JMenuItem("Player Vs Computer");
	viewLeaderboard.add(PVCLeaderboard);
	
	JMenu clearLeaderboard = new JMenu("Clear Leaderboard");
	file.add(clearLeaderboard);
	
	JMenuItem PVPClearBoard = new JMenuItem("Player Vs Player");
	clearLeaderboard.add(PVPClearBoard);
	JMenuItem PVCClearBoard = new JMenuItem("Player Vs Computer");
	clearLeaderboard.add(PVCClearBoard);
	
	file.addSeparator();
	
	JCheckBoxMenuItem enableFly = new JCheckBoxMenuItem("Enable Flying");
	//cbMenuItem.setMnemonic(KeyEvent.VK_C);
	//menuItem.setAccelerator(KeyStroke.getKeyStroke(
	//KeyEvent.VK_T, ActionEvent.ALT_MASK));
	file.add(enableFly);


	file.addSeparator();
	
	JMenuItem exit = new JMenuItem("Exit");
	file.add(exit);
	return menubar;
	}
}
